﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 作业
{
    class employee
    {
        string name;
        string site;

        public string Name { get => name; set => name = value; }
        public string Site { get => site; set => site = value; }
        public employee(string name, string site)
        {
            this.name = name;
            this.site = site;
        }
    }
    class programmer : employee//程序员
    {
        double basic = 2000;
        public programmer(string name, string site) : base(name, site)
        {

        }
        public void pgam()
        {
            Console.WriteLine("程序员姓名{0}地址{1}", Name, Site);
        }
    }
    class sec : employee//秘书
    {
        double basic = 3000;
        public sec(string name, string site) : base(name, site)
        {

        }
        public void secm()
        {
            Console.WriteLine("秘书姓名{0}地址{1}", Name, Site);
        }
    }
    class manager : employee
    {
        double basic = 5000;
        public manager(string name, string site) : base(name, site)
        {

        }
        public void mag()
        {
            Console.WriteLine("高级主管姓名{0}地址{1}", Name, Site);
        }
    }
    class destman : employee
    {
        double basic = 1000;
        public destman(string name, string site) : base(name, site)
        {

        }
        public void det()
        {
            Console.WriteLine("清洁工姓名{0}地址{1}", Name, Site);
        }
    }
}
